body {
    background: #f8f9fb url() repeat center center;
    font-family: 'mihoyo', sans-serif;
}

@font-face {
  font-family: 'mihoyo';
  src: url('https://www.mihoyo.com/_nuxt/fonts/HarmonyOS_Sans_SC_Regular.a5de96f.otf') format('otf'),
}

/* 黑色背景 */
.index-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url() repeat 0 0 / .2rem .2rem;
}

/* 第一页 */
.logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: 800px;
    overflow: hidden;
    z-index: 9999;
}
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }

  .video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

.index-img {
    position: absolute;
    top: 75%;
    left: 38%;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    height: 75px;
    overflow: hidden;
}
.index-img img {
    width:26rem;
    height:2rem;

}
.index-img .jt {
    height: 1rem;
    margin-top: 10px;
    animation: jt 1.5s linear infinite;
}
@keyframes jt {
    0% {
        transform:translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}



 /* 导航 */
 .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: -40px;
    z-index: 1000;
    display: none; /* 默认隐藏导航栏 */
  }
  .navbar a {
    text-decoration: none;
    color: #666;
    font-size: 20px;
    margin-left: 30px;
    position: relative;
    transition: color 0.3s;
  }
  .navbar a.active {
    border-bottom: 2px solid;
  }

  .section {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    height: 100vh;
  }



/* 第二页 */
.page-2 {
  overflow: hidden;
}
.warrt{
    position: relative;
    z-index: 9;
    margin-top: 35rem;
    margin-bottom: 40px;
    transform: translateY(-50%);
}

.bnnet {
position: relative;
width: 766px;
height: 239px;
background: url(https://www.mihoyo.com/_nuxt/img/bg.053f0a9.png) no-repeat right center / cover;
}
.move-image {
width: 500px;
transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
will-change: transform;
}
.move-image1 {
    position: absolute;
    width: 700px;
    bottom: 0;
    z-index: 1;
    left: -160px;
}
.move-image2 {
    position: absolute;
    bottom: 0;
    width: 600px;
    z-index: 5;
    left: 120px;
}
.move-image3 {
    position: absolute;
    bottom: 0;
    width: 400px;
    z-index: 3;
    right: 50px;
}
.image-container {
position: absolute;
right: 0px;
height: 100%;
width: 100%;
bottom: 0;
z-index: 1;
}
.ce-img {
    position: relative;
    top: -300px;
}
.container-page2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 40%;
  right: 20%;
  transform: translateY(-50%);
}
.box-page2 {
  width: 360px;
  height: 100px;
  background-image: url(../img/加入.png);
  background-repeat: no-repeat;
  background-position: center;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  border-radius: 0 0 15px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;

}
.box-page2:nth-child(2){
  background-image: url(../img/理解.png);
}
.box-page2:nth-child(3){
  background-image: url(../img/成为.png);
}
.box-page2:nth-child(4){
  background-image: url(../img/遥遥领先.png);
}

.box-page2 div {
  width: 100%;
  height: 100%;
  background-color: rgb(239, 247, 255);
  transform: translateX(-800px);
  transition: all 0.3s ease;
  border-radius: 0 0 15px 0;
  text-align: center;
  font-size: 28px;
  line-height: 100px;
  padding: 10px;
  color: royalblue;
  background-image: url(../img/鸣潮.jpeg);
  background-size: 50px;
  background-repeat: no-repeat;
  background-position: right bottom;
  
}
.box-page2:hover div {
  transform: translateX(0);
}

/* 第三页 */
.container-page3 {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: -100px;
  margin-left: -400px;
  overflow: hidden;
}
.scene {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-in-out;
}
.scene.active1 {
  transform: translateX(-90%);
}
.home-product-nav {
  margin-top: 50px;
  display: flex;
  margin-left: 100px;
}
.home-product-nav__item {
  margin: 0 10px;
  cursor: pointer;
}
.home-product-nav__item img {
  max-width: 60px;
  height: auto;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}
.home-product-nav__item img:hover {
  filter: brightness(0.8);
  transform: scale(1.1);
}
.qh-bj {
  width: 60%; /* 图片宽度调整为100% */
  position: relative;
  left: -500px;
  margin-left: 600px;
}

.display-text {
  position: absolute;
  top: 10%;
  right: 5%;
  padding: 10px;
  color: rgb(40, 40, 40);
  font-size: 68px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s, filter 0.5s;
  font-weight: 600;
}

.display-text.show {
  opacity: 1;
  filter: blur(5);
}



/* 第四页 */
a {
  text-decoration: none;
}
.news-list__item {
  display: flex;
  width: 980px;
  margin: 20px;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  align-items: center;
  margin: 0 auto; 
  margin-top: 50px;
  margin-bottom: 20px;
}
.news-list__item-banner img {
  max-width: 700px;
  margin-right: 10px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}
.news-list__item-banner img:hover {
  filter: brightness(0.8);
}
.news-list__item-content {
  flex: 1;
}
.news-list__item-date {
  font-size: 0.9em;
  color: #888;
  text-align: center;
}
.news-list__item-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 5px;
  color: #007bff;
}
.news-list__item-desc {
  margin-top: 5px;
  color: #555;
  font-size: 20px;
}
.refresh-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.refresh-button:hover {
  background-color: #0056b3;
}
.ceb-img {
  position: absolute;
  left: 0;
  top: 20%;
}



/* 第五页 */
.card {
  width: 50%;
  margin: 10px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 92, 197, 0.3);
  margin-top: -150px;
}
.card img {
  width: 100%;
  transition: all 0.5s ease; /* 添加过渡效果 */
}
.card img:hover {
  transform: scale(1.1); /* 放大图片 */
}
.refresh-button-ck {
  position: absolute;
  top: 80%;
  left: 50%;
  border: none;
  padding: 10px 20px;
  background-image: url(../img/抽卡背景.png);
  width: 210px;
  height: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.refresh-button-ck:hover {
  filter: brightness(0.9);
}

.ck-img {
  position: absolute;
  left: 5%;
  bottom: 5%;
  background-image: url(https://gitee.com/static/images/logo-black.svg?t=158106664);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  background-size: cover;
  background-repeat: no-repeat;
}

 /* 底部页脚样式 */
 footer {
  color: black;
  text-align: center;
  padding: 20px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

 